const Layout = () => import("@/layout/index.vue");

// 系统设置
// 用户管理
// 权限管理

const routes = [
    {
        path: "/auth",
        name: "Auth",
        component: Layout,
        meta: {
            title: "用户权限",
            icon: "View",
            affix: true,
            keepAlive: true,
            alwaysShow: true,
        },
        children: [
            {
                path: "/auth/user",
                name: "AuthUser",
                component: () => import("@/pages/auth/user.vue"),
                meta: {
                    title: "用户管理",
                    icon: "user",
                    affix: true,
                    keepAlive: true,
                    alwaysShow: false,
                }
            },
            {
                path: "/auth/role",
                name: "AuthRole",
                component: () => import("@/pages/auth/role.vue"),
                meta: {
                    title: "角色管理",
                    icon: "permission",
                    affix: true,
                    keepAlive: true,
                    alwaysShow: false,
                }
            },
            {
                path: "/auth/node",
                name: "AuthNode",
                component: () => import("@/pages/auth/node.vue"),
                meta: {
                    title: "节点管理",
                    icon: "permission",
                    affix: true,
                    keepAlive: true,
                    alwaysShow: false,
                }
            },
        ],
    }
];

export default routes;
